$(document).ready(function(){
	
	$("#buttonQ").click(function(){
		//alert("");
		var courseID = $("#select").val();
		var quesContent = $("#textarea").val();
		var ansPerson = $("#ansperson").val();
		var pattern = /^\d{9}$/;
		if(!pattern.test(ansPerson)){
			alert("教师号必须是数字，并且由9位数组成！")
		}else{
			$("#content").load("/Test/askQuestion.action?courseID="+courseID+"&ansPerson="+ansPerson+"&quesContent="+quesContent);
			
		}
	});
});